FROM centos:7

LABEL school=oldboyedu \
      class=linux85

# RUN sed -e 's|^mirrorlist=|#mirrorlist=|g' \
#         -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://mirrors.tuna.tsinghua.edu.cn|g' \
#         -i.bak \
#         /etc/yum.repos.d/CentOS-*.repo

RUN curl  -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

RUN yum -y install iptables-services net-tools && rm -rf /var/cache/yum

RUN useradd -u 666 oldboyedu

CMD ["tail","-f","/etc/hosts"]
